if (self.CavalryLogger) { CavalryLogger.start_js(["omomU"]); } __d("VideoComponentWithLoopingPlaybackQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"LocalArgument",name:"videoID",type:"ID!",defaultValue:null}],b=[{kind:"Variable",name:"id",variableName:"videoID"}],c={kind:"InlineFragment",type:"Video",selections:[{kind:"ScalarField",alias:"isLooping",name:"is_looping",args:null,storageKey:null},{kind:"ScalarField",alias:"loopCount",name:"loop_count",args:null,storageKey:null}]};return{kind:"Request",fragment:{kind:"Fragment",name:"VideoComponentWithLoopingPlaybackQuery",type:"Query",metadata:null,argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[c]}]},operation:{kind:"Operation",name:"VideoComponentWithLoopingPlaybackQuery",argumentDefinitions:a,selections:[{kind:"LinkedField",alias:"video",name:"node",storageKey:null,args:b,concreteType:null,plural:!1,selections:[{kind:"ScalarField",alias:null,name:"__typename",args:null,storageKey:null},{kind:"ScalarField",alias:null,name:"id",args:null,storageKey:null},c]}]},params:{operationKind:"query",name:"VideoComponentWithLoopingPlaybackQuery",id:"1746038078808360",text:null,metadata:{}}}}();e.exports=a}),null); __d("TextInputControl",["DOMControl","Event","Input","debounce"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){c=a.call(this,c)||this;var d=c.getRoot(),e=b("debounce")(c.update.bind(babelHelpers.assertThisInitialized(c)),0);b("Event").listen(d,{input:e,keydown:e,paste:e});return c}var d=c.prototype;d.setMaxLength=function(a){b("Input").setMaxLength(this.getRoot(),a);return this};d.getValue=function(){return b("Input").getValue(this.getRoot())};d.isEmpty=function(){return b("Input").isEmpty(this.getRoot())};d.setValue=function(a){b("Input").setValue(this.getRoot(),a);this.update();return this};d.clear=function(){return this.setValue("")};d.setPlaceholderText=function(a){b("Input").setPlaceholder(this.getRoot(),a);return this};return c}(b("DOMControl"));e.exports=a}),null); __d("transferTextStyles",["Style"],(function(a,b,c,d,e,f){var g={fontFamily:null,fontSize:null,fontStyle:null,fontWeight:null,lineHeight:null,wordWrap:null};function a(a,c){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(g[d]=b("Style").get(a,d));b("Style").apply(c,g)}e.exports=a}),null); __d("TextMetrics",["DOM","Style","UserAgent","transferTextStyles"],(function(a,b,c,d,e,f){__p&&__p();function g(a){var c=a.clientWidth,d=b("Style").get(a,"-moz-box-sizing")=="border-box";if(d&&b("UserAgent").isBrowser("Firefox < 29"))return c;d=b("Style").getFloat(a,"paddingLeft")+b("Style").getFloat(a,"paddingRight");return c-d}a=function(){"use strict";__p&&__p();function a(a,c){this.$1=a;this.$2=!!c;c="textarea";var d="textMetrics";this.$2&&(c="div",d+=" textMetricsInline");this.$3=b("DOM").create(c,{className:d});b("transferTextStyles")(a,this.$3);document.body.appendChild(this.$3)}var c=a.prototype;c.measure=function(a){var c=this.$1,d=this.$3;a=(a||c.value)+"...";if(!this.$2){var e=g(c);b("Style").set(d,"width",Math.max(e,0)+"px")}c.nodeName==="TEXTAREA"?d.value=a:b("DOM").setContent(d,a);return{width:d.scrollWidth,height:d.scrollHeight}};c.destroy=function(){b("DOM").remove(this.$3)};return a}();e.exports=a}),null); __d("TextAreaControl",["Arbiter","ArbiterMixin","CSS","DOMControl","Event","Style","TextInputControl","TextMetrics","classWithMixins","mixin"],(function(a,b,c,d,e,f){__p&&__p();function g(a,c){return b("Style").getFloat(a,c)||0}a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;d.autogrow=b("CSS").hasClass(c,"uiTextareaAutogrow");d.autogrowWithPlaceholder=b("CSS").hasClass(c,"uiTextareaAutogrowWithPlaceholder");d.width=null;b("Event").listen(c,"focus",d._handleFocus.bind(babelHelpers.assertThisInitialized(d)));return d}var d=c.prototype;d.setAutogrow=function(a){this.autogrow=a;return this};d.onupdate=function(){a.prototype.onupdate.call(this),this.updateHeight()};d.updateHeight=function(){__p&&__p();if(this.autogrow){var a=this.getRoot();this.metrics||(this.metrics=new(b("TextMetrics"))(a));typeof this.initialHeight==="undefined"&&(this.isBorderBox=b("Style").get(a,"box-sizing")==="border-box"||b("Style").get(a,"-moz-box-sizing")==="border-box"||b("Style").get(a,"-webkit-box-sizing")==="border-box",this.borderBoxOffset=g(a,"padding-top")+g(a,"padding-bottom")+g(a,"border-top-width")+g(a,"border-bottom-width"),this.initialHeight=a.offsetHeight-this.borderBoxOffset);var c;(!a.value||a.value.length===0)&&this.autogrowWithPlaceholder?c=this.metrics.measure(a.placeholder):c=this.metrics.measure();c=Math.max(this.initialHeight,c.height);this.isBorderBox&&(c+=this.borderBoxOffset);this.maxHeight&&c>this.maxHeight&&(c=this.maxHeight,b("Arbiter").inform("maxHeightExceeded",{textArea:a}));c!==this.height&&(this.height=c,b("Style").set(a,"height",c+"px"),b("Arbiter").inform("reflow"),this.inform("resize"))}else this.metrics&&(this.metrics.destroy(),this.metrics=null)};d.resetHeight=function(){this.height=-1,this.update()};d.setMaxHeight=function(a){this.maxHeight=a};d.setAutogrowWithPlaceholder=function(a){this.autogrowWithPlacedholder=a};d._handleFocus=function(){this.width=null};c.getInstance=function(a){return b("DOMControl").getInstance(a)||new c(a)};return c}(b("classWithMixins")(b("TextInputControl"),b("mixin")(b("ArbiterMixin"))));e.exports=a}),null); __d("AbstractTextArea.react",["cx","AbstractTextField.react","React","TextAreaControl"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").Component;c=b("React").PropTypes;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.componentDidUpdate=function(){this.$2&&this.$2.onupdate()};d.componentWillUnmount=function(){this.$2=null};d.render=function(){var a=this;return b("React").createElement(b("AbstractTextField.react"),this.props,b("React").createElement("textarea",{className:"_58an",onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,onKeyUp:this.props.onKeyUp,rows:this.props.rows,tabIndex:this.props.tabIndex,ref:function(b){a.$1=b,a.$3()}}))};d.$3=function(){if(this.$1&&this.props.autoGrow&&!this.$2){var a=new(b("TextAreaControl"))(this.$1);a.setAutogrow(!0);a.onupdate();this.$2=a}};d.focusInput=function(){this.$1&&this.$1.focus()};d.blurInput=function(){this.$1&&this.$1.blur()};d.getTextFieldDOM=function(){return this.$1};d.getValue=function(){return this.$1?this.$1.value:""};return c}(a);d.propTypes=babelHelpers["extends"]({},b("AbstractTextField.react").propTypes,{autoGrow:c.bool});e.exports=d}),null); __d("formatDurationSeconds",["fbt","padNumber"],(function(a,b,c,d,e,f,g){function a(a){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);if(c)return g._("{hours}:{minutes}:{seconds}",[g._param("hours",c),g._param("minutes",b("padNumber")(d,2)),g._param("seconds",b("padNumber")(a,2))]);else return g._("{minutes}:{seconds}",[g._param("minutes",d),g._param("seconds",b("padNumber")(a,2))])}e.exports=a}),null); __d("FBStorySavedState",[],(function(a,b,c,d,e,f){"use strict";var g={ARCHIVED:"ARCHIVED",NOT_SAVABLE:"NOT_SAVABLE",NOT_SAVED:"NOT_SAVED",SAVED:"SAVED",isMutableState:function(a){return a===g.ARCHIVED||a===g.SAVED||a===g.NOT_SAVED}};e.exports=g}),null); __d("VideoLink.react",["cx","Bootloader","Keys","React","URI","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=d.length)return"break";h=d[g++]}else{g=d.next();if(g.done)return"break";h=g.value}var c=h,f=a.addListener(c,function(){return b.$6(c)});b.$1.addSubscriptions(f)};for(var d=f,e=Array.isArray(d),g=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h,i=c();if(i==="break")break}};g.$6=function(a){this.$2.length||b("setImmediate")(this.$7),this.$2.push(a)};return d}(b("React").Component),c.displayName="VideoComponent("+i+")",d}e.exports={createContainer:a}}),null); __d("VideoComponentClickPlayPause.react",["React","VideoComponent","VideoWithClickPlayPause"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){new(b("VideoWithClickPlayPause"))(a)};d.disable=function(){};d.shouldComponentUpdate=function(){return!1};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentSphericalVideoHeadingIndicator.react",["cx","Bootloader","React","VideoComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.state={enabled:!1};return b}var d=c.prototype;d.enable=function(a){var c=this;if(!this.props.videoData.isSpherical())return;this.setState({enabled:!0},function(){b("Bootloader").loadModules(["VideoSphericalHeadingIndicator"],function(b){var d=c.props.videoData.getSphericalConfig();new b(a,c.refs.root,d.initialHeading,d.initialPitch,d.fieldOfView)},"VideoComponentSphericalVideoHeadingIndicator.react")})};d.disable=function(){this.setState({enabled:!1})};d.render=function(){return!this.state.enabled?null:b("React").createElement("div",{className:"_3lfe",ref:"root"})};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentSphericalVideoOverlay.react",["cx","Bootloader","React","VideoComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.state={enabled:!1};return b}var d=c.prototype;d.enable=function(a){var c=this;if(!this.props.videoData.isSpherical())return;this.setState({enabled:!0},function(){b("Bootloader").loadModules(["VideoSphericalOverlay"],function(b){c.$1&&c.$2&&c.$3&&new b(a,c.$1,c.$2,!1,c.$3)},"VideoComponentSphericalVideoOverlay.react")})};d.disable=function(){this.setState({enabled:!1})};d.render=function(){var a=this;return!this.state.enabled?null:b("React").createElement("div",{className:"_1-s8"},b("React").createElement("div",{className:"_1zvy",ref:function(b){a.$1=b}}),b("React").createElement("div",{className:"_2660",ref:function(b){a.$2=b}}),b("React").createElement("div",{className:"_236i",ref:function(b){a.$3=b}}))};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentWithSphericalRecenterControl.react",["Bootloader","React","VideoComponent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){var c=this;if(!this.props.videoData.isSpherical())return;b("Bootloader").loadModules(["SphericalVideoRecenterControl"],function(b){var d=c.props.videoData.getSphericalConfig();c.$1=new b(a,d.initialHeading,d.initialPitch)},"VideoComponentWithSphericalRecenterControl.react")};d.disable=function(){this.$1&&this.$1.destroy()};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoComponentWithSphericalVideoPlayer.react",["Bootloader","React","VideoComponent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){var c=this;if(!this.props.videoData.isSpherical())return;b("Bootloader").loadModules(["SphericalVideoPlayer"],function(b){var d=c.props.videoData.getSphericalConfig();c.$1=new b(d,{eagerPreload:!0,useContainerDimensions:!0});c.$1.enable(a)},"VideoComponentWithSphericalVideoPlayer.react")};d.disable=function(){this.$1&&this.$1.disable()};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("VideoResizeMode",[],(function(a,b,c,d,e,f){"use strict";e.exports={FIT:"FIT",COVER_HEIGHT:"COVER_HEIGHT"}}),null); __d("VideoPlayer.react",["cx","FBOverlayBase.react","FBOverlayContainer.react","FBOverlayElement.react","Pleasantville.react","React","ReactDOM","VideoComponentClickPlayPause.react","VideoComponentSphericalVideoHeadingIndicator.react","VideoComponentSphericalVideoOverlay.react","VideoComponentWithSphericalRecenterControl.react","VideoComponentWithSphericalVideoPlayer.react","VideoPlayerController","VideoResizeMode","joinClasses","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={showCaptionsDefault:!1,onUpdateMetadata:function(){},onVideoClick:function(){},autoplay:!1,autoplayReason:"unknown",autoplaySetting:"autoplay_setting_www",forceHD:!1,startMuted:!1,isUnmountScheduled:!1,videoResizeMode:b("VideoResizeMode").FIT,allowCrossPageTransition:!1,disableClickPlayPause:!1,disableSphericalComponents:!1};c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$4=function(){d.vpcCleanedup||(d.vpc.pause("unloaded"),d.vpc.destroy({disableStillFrame:!0}),d.vpcCleanedup=!0)};d.$7=function(a,c){var e=babelHelpers["extends"]({},d.props,{videoID:d.props.videoData.getVideoID(),ref:d.$8.bind(babelHelpers.assertThisInitialized(d),c.toString())});return b("React").createElement(b("FBOverlayElement.react"),{key:c},b("React").cloneElement(a,e))};d.componentRefs=new Map();d.state={isFullscreen:!1};return d}var d=c.prototype;d.componentDidMount=function(){this.vpc=this.$1(this.refs.video.getVideoPlayerInitArgs(),this.props.videoData)};d.componentDidUpdate=function(a){var c=this;this.$2(a)&&(this.$3(this.vpc),this.vpc=this.$1(this.refs.video.getVideoPlayerInitArgs(),this.props.videoData));a.isUnmountScheduled!==this.props.isUnmountScheduled&&this.props.isUnmountScheduled&&this.vpc.runOnceOnApiEventLogged("started_playing",function(){b("setTimeoutAcrossTransitions")(c.$4,0);return})};d.componentWillUnmount=function(){this.$3(this.vpc)};d.play=function(a){var b=this.vpc;b&&b.play(a)};d.pause=function(a){var b=this.vpc;b&&b.pause(a)};d.$5=function(){var a=[];this.props.disableSphericalComponents||(a.push(b("React").createElement(b("VideoComponentWithSphericalVideoPlayer.react"),null)),a.push(b("React").createElement(b("VideoComponentWithSphericalRecenterControl.react"),null)),a.push(b("React").createElement(b("VideoComponentSphericalVideoHeadingIndicator.react"),null)),a.push(b("React").createElement(b("VideoComponentSphericalVideoOverlay.react"),null)));this.props.disableClickPlayPause||a.push(b("React").createElement(b("VideoComponentClickPlayPause.react"),null));return a};d.$3=function(a){__p&&__p();if(a){for(var b=this.componentRefs.values(),c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;e.disable()}a.runOnApiReady(this.$4)}};d.$2=function(a){var b=a.videoData.getVideoID()!==this.props.videoData.getVideoID();a=a.videoData.getPlayableSrcSD()!==this.props.videoData.getPlayableSrcSD();return b||a};d.$1=function(a,c){__p&&__p();var d=this,e=a.apiConfig,f=a.apiModule;a=a.videoElement;this.vpcCleanedup=!1;e.videoData=[c.getRawData()];e.startTimestamp=this.props.startTimestamp;var g=new(b("VideoPlayerController"))({source:this.props.subOrigin,playerOrigin:this.props.playerOrigin||null,reaction_video_channel_type:this.props.reactionVideoChannelType,reaction_video_channel_subtype:this.props.reactionVideoChannelSubtype,autoplay_reason:this.props.autoplayReason,autoplay_setting:this.props.autoplaySetting,apiModule:f,apiConfig:e,should_autoplay:!this.props.isUnmountScheduled&&this.props.autoplay,player_version:this.props.videoData.getPlayerVersionOverwrite(),video_ids:[c.getVideoID()],allowCrossPageTransition:this.props.allowCrossPageTransition,isReactPlayer:!0,video_url:c.getVideoURL(),isBroadcast:c.isBroadcast(),upstreamPlayerSource:this.props.upstreamPlayerSource||null,livingRoomSessionID:this.props.livingRoomSessionID,customLoggingProps:this.props.customLoggingProps,keepPlayingOnDialog:this.props.keepPlayingOnDialog,isChainedLivingRoom:this.props.isChainedLivingRoom,liveLinearChannelId:this.props.liveLinearChannelId,isReplayLivingRoom:this.props.isReplayLivingRoom},{root_element:b("ReactDOM").findDOMNode(this.refs.root),container_element:b("ReactDOM").findDOMNode(this.refs.container),video_element:b("ReactDOM").findDOMNode(a)});for(var f=this.componentRefs.values(),e=Array.isArray(f),c=0,f=e?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(c>=f.length)break;a=f[c++]}else{c=f.next();if(c.done)break;a=c.value}a=a;a.enable(g)}g.addListener("clickVideo",this.props.onVideoClick);g.addListener("toggleFullscreen",function(){return d.setState({isFullscreen:!!g.isFullscreen()})});g.addListener("updateMetadata",function(){return d.props.onUpdateMetadata(g)});this.props.onVpcUpdate!==null&&this.props.onVpcUpdate!==void 0&&this.props.onVpcUpdate(g);return g};d.$6=function(a){var c="_ox1";this.props.videoResizeMode==b("VideoResizeMode").COVER_HEIGHT?c="_ox1 _41l4":this.props.offsetType=="horizontal"?c="_ox1 _blh":this.props.offsetType=="vertical"&&(c="_ox1 _bli");if(a!==null&&a!==void 0)return b("joinClasses")(c,a);else return c};d.render=function(){__p&&__p();var a=this.props,c=a.width,d=a.height,e=a.tabIndex,f=a.videoData,g=a.startMuted,h=a.offsetValue,i=a.className;a=babelHelpers.objectWithoutPropertiesLoose(a,["width","height","tabIndex","videoData","startMuted","offsetValue","className"]);i=this.$6(i);var j=c!==void 0||d!==void 0;j&&(d&&(c=c||d*f.getAspectRatio()),c&&(d=d||c/f.getAspectRatio()));f=b("React").createElement(b("Pleasantville.react"),babelHelpers["extends"]({ref:"video",videoData:f,width:c,height:d,showSubtitles:this.props.showCaptionsDefault,className:i,startMuted:g,offsetValue:this.state.isFullscreen?0:h},a));i=j?{}:{width:"100%",height:"100%"};g=j?{width:(c||0)+"px",height:(d||0)+"px"}:{width:"100%",height:"100%"};return b("React").createElement("div",{ref:"root",tabIndex:e,className:"_1c_u",style:i},b("React").createElement(b("FBOverlayContainer.react"),{ref:"container",className:"_53j5",style:g},b("React").createElement(b("FBOverlayBase.react"),null,f),b("React").Children.toArray(this.$5().concat(this.props.children)).filter(function(a){return a!=null}).map(this.$7)))};d.$8=function(a,b){!b?this.componentRefs["delete"](a):this.componentRefs.set(a,b)};return c}(b("React").Component);c.defaultProps=a;e.exports=c}),null); __d("VideoDataContainer.react",["cx","invariant","regeneratorRuntime","Promise","React","VideoData","VideoPlayer.react","VideoPlayerMetaData","VideoPlayerShakaGlobalConfig"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f